<?php


namespace App\server;

/**
 * 内容
 * Class MsgContent
 * @package App\server
 */
class MsgContent
{
    /**
     * @var int
     */
    public $type;
    /**
     * @var string
     */
    public $data;

    public function __construct(int $type, string $data)
    {
        $this->type = $type;
        $this->data = $data;
    }

    /**
     * @return int
     */
    public function getType(): int
    {
        return $this->type;
    }

    /**
     * @return string
     */
    public function getData(): string
    {
        return $this->data;
    }
}